<%@ include file="/common/taglibs.jsp"%>


<div class="box">
	<div class="border-right">
		<div class="border-left">
			<div class="inner">
			
<form:form  method="post">

	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:#c3c3c3 1px solid; border-bottom:#dedede 1px solid;">
      <tbody>
        <tr>
          <td colspan="4" width="316" height="29" align="center">
          	<h3> <span> RESERVACIONES </span></h3>
          </td>          
        </tr>
      
        <tr>
          <td   align="left" valign="top"> <span>  CLIENTE :  </span>   </td>
          <td   align="left" valign="top"> <input readonly="readonly" height="20" width="200" type="text" name="coUsuario" size="5" value=<c:out value="${usuario.no_Nrodocu}"/> > <span>  <c:out value="${usuario.no_Usuario}"/> <c:out value="${usuario.no_Apepaterno}"/></span>  </td>
        </tr>


        <tr>
          <td   align="left"  > <span>  SELECCIONE CINE: </span>  </td>
        </tr>
        
        <tr>
        	
	           <td  valign="top">
	             	<SELECT NAME="textarea" id="textarea">						
					<c:forEach items="${cines}" var="cine">
					<OPTION VALUE=<c:out value="${cine.codigoCine}"/> > <c:out value="${cine.nombreCine}"/> </OPTION>																												 
					</c:forEach>
					</SELECT>
	           </td>
	           <td   align="left"  > <input type="submit" name="boton" value="Listar"  />  </td>
                    
        </tr>
 



       <tr>
         <td height="13" align="left" valign="top"><strong>SELECCIONE FUNCION:</strong></td>
       </tr>


		<tr>
			<td colspan="4" >
				<table border=1>
					<tr>
					<td>CODIGO-FUNCION</td>
						<td>FECHA</td>
						<td>PELICULA</td>
						<td>SALA</td>
						<td>HORARIO</td>
						<td>TIPO FUNCION</td>
						<td>N# ASIENTOS</td>
						<td>N# OCUPADOS</td>
						<td>ELEGIR <INPUT TYPE="radio"  NAME="funcion" ID="funcion" style="visibility:hidden;" VALUE="" CHECKED  > </td>
					</tr>
																						
					<c:forEach items="${funciones}" var="funcion">
						<tr>
							<td><c:out value="${funcion.CO_FUNCION}"/></td>
							<td><c:out value="${funcion.FE_FUNCION}"/></td>
							<td><c:out value="${funcion.CO_PELICULA}"/></td>
							<td><c:out value="${funcion.CO_SALA}"/></td>
							<td><c:out value="${funcion.HR_HORARIO}"/></td>
							<td><c:out value="${funcion.CO_TIPOFUNCION}"/></td>
							<td><c:out value="${funcion.NU_ASIENTOS}"/></td>
							<td><c:out value="${funcion.NU_OCUPADOS}"/></td>
							<td> <INPUT TYPE="radio" VALUE=<c:out value="${funcion.CO_FUNCION}"/> NAME="funcion" ID="funcion"> </td>																		
						<tr>					  									
					</c:forEach>
				</table>
			</td>
		</tr>              	
              	  

   				

                     <tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                      </tr>
   
 

                      <tr>
                          <td width="120" height="37" bgcolor="#000000"><span class="style3">CANTIDAD : </span></td>
                          <td><input TYPE="text" size="5" width="200" height="20" name="cantidad" id="cantidad"  value="0" /><br /></td>
                      </tr>
                       <tr>
                          <td><input type="submit"  value="Comprar"/></td>
                      </tr>

			</table>
			
 </form:form>
 
 		 	<table border=1>
 				       <tr>
				         <td colspan="7" height="13" align="left" valign="top"><strong>HISTORIAL DE ENTRADAS:</strong></td>
				       </tr>
					<tr>
						<td>CO_ENTRADA</td>
						<td>CO_USUARIO</td>
						<td>CO_FUNCION</td>
						<td>CANTIDAD</td>

 					
					</tr>
																						
					<c:forEach items="${entradas}" var="entrada">
						<tr>							
							<td><c:out value="${entrada.codigoEntrada}"/></td>
							<td><c:out value="${entrada.codigoUsuario}"/></td>
							<td><c:out value="${entrada.codigoFuncion }"/></td>
							<td><c:out value="${entrada.cantidadEntrada }"/></td>																								
						<tr>					  									
					</c:forEach>
				</table>	

  			         
 			</div>
		</div>
	</div>
</div>
 
